FROM eclipse-temurin:21
WORKDIR /gateway-application
RUN mkdir /opt/app
ARG JAR_FILE=build/libs/gateway-application-1.0.0-SNAPSHOT.jar
COPY ${JAR_FILE}  app.jar
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m"
CMD java $JAVA_OPTS -jar app.jar
EXPOSE 9999

